package cn.xinfei.xdecision.common.datamodel;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.Map;

@Data
@Accessors(chain = true)
@TableName("t_decision_result_exam")
public class DecisionResultExam {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long examId;

    private String requestId;
    private String tpCode;
    private int organId;
    private String decisionId;
    private String parentDecisionId;
    private String championDecisionId;
    private String engineCode;

    private String engineName;
    private String engineVersion;
    private String scene;
    private String state;
    private String code;
    private String result;
    private String branch;
    private Integer retry;
    private long respond;
    private String sync = "sync";//sync同步请求，async异步请求
    private Date createTime;
    private Date updateTime;

    @TableField(exist = false)
    private Map<String, Object> out;
}
